import pymysql
class py():
    def __init__(self,host,user,password,database):
        self.con=pymysql.connect(host=host,user=user,password=password,database=database)
        self.cur.cursor()
    def select(self,sql):
        self.cur.execute(sql)
    def all(self):
        self.con.close()
        self.cur.close()